/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseUrl: 老项目域名地址
 * khglUrl: 客户管理域名地址
 * dicUrl : 字典服务器地址
 * routerMode: 路由模式
 * imgBaseUrl: 图片所在域名地址
 * welUrl :默认欢迎页
 *
 */


let baseUrl = ''
let imgBaseUrl = 'http://qiniu.lz0ia.cn/'
let iconfontVersion = ['567566_r22zi6t8noas8aor', '599693_0b5sleso3f1j1yvi',
  '667895_xte3dcfrvbo6r', '1079642_2nd6sx1a3aj', '1079642_tlbfyse4alf', '1079642_hi98pe2l957',
  '1079642_t7swza4icb', '1079642_y4z3fl99sh9', '1079642_opd6mj1shso', '1079642_yz131cd63mh',
  '1079642_4ll5z7jq6p2', '1079642_vmtmsx2p4sq', '1079642_kaodo6uqo8p', '1079642_adt7oqheezw',
  '1079642_w766fv5vfv', '1079642_iu19csmn6lj', '1079642_obydmoyfobk', '1079642_x9y52llippn',
  '1079642_vl2txw1ymw', '1079642_yc9ng5b1ilj']
let iconfontUrl = `//at.alicdn.com/t/font_$key.css`
let codeUrl = ``
let counterTime = 0
console.log('process.env.NODE_ENV' + process.env.NODE_ENV)
if (process.env.NODE_ENV == 'development') {
  //本地开发环境配置
  codeUrl = `/admin/code`
  baseUrl = `http://localhost:7802`
  //本地插件远程加载数据延迟时间
  counterTime = 0
} else if (process.env.NODE_ENV == 'production') {
  //线上环境配置
  codeUrl = `/gateway/admin/code`
  baseUrl = `http://47.114.127.11/gateway`
  //线上插件远程加载数据延迟时间
  counterTime = 0
}

export {
  baseUrl,
  iconfontUrl,
  iconfontVersion,
  codeUrl,
  imgBaseUrl,
  counterTime
}
